//部门链接
import request from '@/utils/request'

export function DepartmentGet(dd)
{
//显示
  return request({
   // url: '/services/app/PositionDataService/Get',
    url: '/services/app/DepartmentService/Get',
    method: 'get',
    params: {Id:dd}
  })
}
//分页条件查询
export function DepartmentGetAll(searchData) {
    return request({
     // url: '/services/app/PositionDataService/GetAll',
      url: '/services/app/DepartmentService/GetAll',
      method: 'get',
      params: searchData
    })
  }




export function DepartmentCreated(dictTypeInfo) {
//添加
  return request({
    //url: '/services/app/DictionaryTableTypeService/Create',
    url: '/services/app/DepartmentService/Create',
    method: 'post',
    data: dictTypeInfo
  })
}
export function DepartmentUpdate(form)
{
//修改
  return request({
    //url: '/services/app/DictionaryTableTypeService/Update',
    url: '/services/app/DepartmentService/Update',
    method: 'put',
    data: form
  })
}
export function DepartmentDelets(dd)
{
//删除
  return request({
    url: '/services/app/DepartmentService/Delete',
    method: 'delete',
    params: {Id:dd}
  })
}


